package com.zhangkunhao.notes.entity.Do;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;


/**
 * 我的问题收藏夹
 *
 * @author 20642
 */
@TableName(name = "tb_collect_question")
public class CollectQuestion {
    @TableId(value = "id")
    private Integer id;
    @TableField(value = "user_id")
    private Integer userId;
    @TableField(value = "question_id")
    private Integer questionId;
    @TableField(value = "question_title")
    private String questionTitle;

    public CollectQuestion() {
    }

    public CollectQuestion(Integer id, Integer userId, Integer questionId, String questionTitle) {
        this.id = id;
        this.userId = userId;
        this.questionId = questionId;
        this.questionTitle = questionTitle;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return userId
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置
     *
     * @param userId：
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取
     *
     * @return questionId
     */
    public Integer getQuestionId() {
        return questionId;
    }

    /**
     * 设置
     *
     * @param questionId：
     */
    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    /**
     * 获取
     *
     * @return questionTitle
     */
    public String getQuestionTitle() {
        return questionTitle;
    }

    /**
     * 设置
     *
     * @param questionTitle：
     */
    public void setQuestionTitle(String questionTitle) {
        this.questionTitle = questionTitle;
    }

    @Override
    public String toString() {
        return "CollectQuestion{id = " + id + ", userId = " + userId + ", questionId = " + questionId + ", questionTitle = " + questionTitle + "}";
    }
}
